package com.explorati.design_pattern.comparson.structural.proxy;

public class Star implements IStar {

	private String name;

	public Star(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public void action() {
		System.out.println(this.name + "在演戏中");
	}

	@Override
	public void advert() {
		System.out.println(this.name + "在做广告代言");
	}

}
